package cn.zzdt4j.threadpool.dynamic.model.config.properties;

import lombok.Data;

/**
 * Thread-pool monitor properties
 *
 * @author by <a href="mailto:ligang941012@gmail.com">gang.Li</a>
 * @since 2024/5/14 0:10
 */
@Data
public class MonitorProperties {

    /**
     * Whether to enable thread pool monitoring. Default true.
     */
    private Boolean enable = Boolean.TRUE;

    /**
     * Type of collection thread pool running data. eg: log,micrometer. Multiple can be used at the same time, default micrometer.
     */
    // TODO
    private String collectTypes = "micrometer";

    /**
     * Monitor the type of thread pool. eg: dynamic,web,adapter. Can be configured arbitrarily, default dynamic.
     */
    // TODO
    private String threadPoolTypes = "dynamic";

    /**
     * Initial delay
     */
    private Long initialDelay = 1000L;

    /**
     * Collect interval
     */
    private Long collectInterval = 5000L;

}
